/**
 * Created by Zhang JiRen
 * @date 2022/7/22 0022
 */
import request from "@/utils/request";

const create = params => {
  return request({
    url: "/api/v1/antivirus/create",
    method: "post",
    data: params
  });
};

const _delete = params => {
  return request({
    url: "/api/v1/antivirus/delete",
    method: "get",
    data: params
  });
};

const getorg = params => {
  return request({
    url: "/api/v1/antivirus/org/list",
    method: "get",
    data: params
  });
};

const getpublic = params => {
  return request({
    url: "/api/v1/antivirus/public/list",
    method: "get",
    data: params
  });
};

const detail = params => {
  return request({
    url: "/api/v1/antivirus/detail",
    method: "get",
    data: params
  });
};

const disable = params => {
  return request({
    url: "/api/v1/antivirus/disable",
    method: "get",
    data: params
  });
};

const undisable = params => {
  return request({
    url: "/api/v1/antivirus/enable",
    method: "get",
    data: params
  });
};

const scenario = params => {
  return request({
    url: "/api/v1/antivirus/scenario",
    method: "get",
    data: params
  });
};

const severity = params => {
  return request({
    url: "/api/v1/antivirus/severity",
    method: "get",
    data: params
  });
};

const edityara = params => {
  return request({
    url: "/api/v1/antivirus/edit",
    method: "post",
    data: params
  });
};

const editcomment = params => {
  return request({
    url: "/api/v1/antivirus/comment/edit",
    method: "post",
    data: params
  });
};

const editname = params => {
  return request({
    url: "/api/v1/antivirus/name/edit",
    method: "post",
    data: params
  });
};

export default {
  create,
  _delete,
  getorg,
  getpublic,
  detail,
  disable,
  undisable,
  scenario,
  severity,
  edityara,
  editcomment,
  editname
};
